#!/bin/bash

if [ $MODULE = datax-admin ]; then
    ./datax-web-2.1.2/bin/start.sh -m datax-admin
    tail -f /opt/datax-web-2.1.2/modules/datax-admin/bin/console.out
elif [ $MODULE = datax-executor ]; then
    ./datax-web-2.1.2/bin/start.sh -m datax-executor
    tail -f /opt/datax-web-2.1.2/modules/datax-executor/bin/console.out
fi